Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implement X-Ray tracing for end-to-end observability #3

Merged
merged 13 commits into from
Aug 29, 2024
Merged

Conversation

pymonger
Copy link
Collaborator

@pymonger pymonger commented Aug 12, 2024

Purpose

The purpose of this PR is to provide end-to-end observability of requests as they go from triggers, to the initiator (router) through to evaluators. This PR integrates AWS X-Ray into initiator framework and provides examples of how to instrument triggers and evaluators with traces.

Proposed Changes

  • updated lambda build scripts to install new dependency, aws_xray_sdk, to provide instrumentation tools to emit traces
  • instrumented the lambda_handler_base() function to emit trace messages annotated with the payload information of the request
  • restructured deployment of sns-sqs-lambda evaluator to allow for trace instrumentation
  • instrument traces in evaluator examples: sns-sqs-lambda
  • instrumented traces in cmr-query trigger example
  • created version of scheduled-task trigger that includes trace instrumentation: scheduled-task-instrumented
  • fix bug in constructing payload message in the scheduled-task trigger
  • updated instructions for running end-to-end demo in README.md

Issues

Testing

@pymonger pymonger marked this pull request as ready for review August 13, 2024 18:00
@pymonger pymonger marked this pull request as draft August 13, 2024 18:00
@pymonger pymonger marked this pull request as ready for review August 28, 2024 22:49
Copy link
Collaborator

@galenatjpl galenatjpl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me!

@galenatjpl galenatjpl merged commit acb94fe into main Aug 29, 2024
4 checks passed
@pymonger pymonger deleted the tracing branch August 29, 2024 18:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants